import request from '@/utils/request'

// 查询木业仓库分组信息列表
export function listWarehouseGrouping(query) {
  return request({
    url: '/warehouse/warehouseGrouping/list',
    method: 'get',
    params: query
  })
}

// 查询木业仓库分组信息详细
export function getWarehouseGrouping(groupingId) {
  return request({
    url: '/warehouse/warehouseGrouping/' + groupingId,
    method: 'get'
  })
}

// 新增木业仓库分组信息
export function addWarehouseGrouping(data) {
  return request({
    url: '/warehouse/warehouseGrouping',
    method: 'post',
    data: data
  })
}

// 修改木业仓库分组信息
export function updateWarehouseGrouping(data) {
  return request({
    url: '/warehouse/warehouseGrouping',
    method: 'put',
    data: data
  })
}

// 删除木业仓库分组信息
export function delWarehouseGrouping(groupingId) {
  return request({
    url: '/warehouse/warehouseGrouping/' + groupingId,
    method: 'delete'
  })
}

// 导出木业仓库分组信息
export function exportWarehouseGrouping(query) {
  return request({
    url: '/warehouse/warehouseGrouping/export',
    method: 'get',
    params: query
  })
}
